<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 先声明对象
    let banzhuren = {
      name: `cuicui`,
      age: 18,
      gender: `wonmen`,
      sing: function () {
        document.write(`阴天`)
      }


    }

    // 打印属性值     对象名.属性名   / 对象名[`属性值`]    []里面一定要写``,
    console.log(banzhuren.name);
    console.log(banzhuren[`age`]);
    // 打印方法    对象名.方法名()
    banzhuren.sing()


  </script>
</body>

</html>